package cn.yangliu.task.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 杨柳
 * @date 2019-04-14
 */
public class TaskVo implements Serializable {

    private static final long serialVersionUID = 3867214349139982504L;

    private String id; //主建

    private String clazz; //任务类

    private String cron;//表达式

    private Integer status; //任务状态

    private Integer excuteStatus; //任务执行状态

    private String method;//任务要调度的方法

    private String name;//任务名称

    private Integer excuteCount; //任务已执行次数

    private Integer planExcuteCount; //任务计划执行次数

    private Boolean allowRepeat; //当天成功后是否允许重复 默认允许

    private LocalDateTime updateTime;//任务更新时间

    private LocalDateTime createTime;//任务创建时间

    private String remark;//备注

    private String config; //用户自定义配置

    private String failRepeatCron;//失败时多久重新执行表达式 不设置 则不重新执行

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getExcuteStatus() {
        return excuteStatus;
    }

    public void setExcuteStatus(Integer excuteStatus) {
        this.excuteStatus = excuteStatus;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getExcuteCount() {
        return excuteCount;
    }

    public void setExcuteCount(Integer excuteCount) {
        this.excuteCount = excuteCount;
    }

    public Integer getPlanExcuteCount() {
        return planExcuteCount;
    }

    public void setPlanExcuteCount(Integer planExcuteCount) {
        this.planExcuteCount = planExcuteCount;
    }

    public Boolean getAllowRepeat() {
        return allowRepeat;
    }

    public void setAllowRepeat(Boolean allowRepeat) {
        this.allowRepeat = allowRepeat;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getFailRepeatCron() {
        return failRepeatCron;
    }

    public void setFailRepeatCron(String failRepeatCron) {
        this.failRepeatCron = failRepeatCron;
    }
}
